//
//  ImageCache.h
//  FrameTest
//
//  Created by Tiger on 11-11-1.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ImageCache : NSObject {

}

+ (NSString *)md5:(NSString *)str;
+ (BOOL)cacheImageData:(NSData *)imageData strUrl:(NSString *)strUrl;		//保存data到文件
+ (BOOL)cacheImage:(UIImage *)image strUrl:(NSString *)strUrl;				//保存图片到文件
+ (BOOL)deleteImageWithUrl:(NSString *)strUrl;								//删除某张图片
+ (UIImage *)selectImageWithUrl:(NSString *)strUrl;							//选取某张图片，不存在则返回nil
+ (void)deleteAllImages;													//删除文件夹
+ (NSString *)cachedSizeString;												//缓存文件大小

@end
